import request from '@/utils/request';

// 获取登录用户信息
export async function fetchUser() {
  return request('/api/platform/getLoginUserInfo', {
    method: 'GET',
    params: {},
  });
}

// 登陆
export async function login(data: { username: string; password: string }) {
  return request('/api/platform/mainLand', {
    method: 'POST',
    data,
  });
}

// 获取验证码
export async function getCapture(data: { phone: string }) {
  return request('/api/sendMessage', {
    method: 'POST',
    data,
  });
}
